<!--<?php
if (!defined('AJAX')){include_once PrintEot('left');}
if($action == 'detail' && defined('AJAX')){
print <<<EOT
-->
<div class="popoutContent">
   	<h2 class="h1"><a class="del_img fr" href="javascript:;" onclick="closep();">关闭</a>用户评价内容</h2>
  	<div style="height: 273px; overflow-y: auto;">
      	<div class="admin_table mb10" style="padding: 10px; width: 400px">
          {$result[contents][0][content]}
        </div>
    </div>
</div>	
<!--
EOT;
}elseif($action == 'score'){print <<<EOT
-->

<div class="nav3 mb10">
    <ul class="cc">
        <li class="current"><a hidefocus="true" href="$basename&action=score&hid=$hid">总体评价</a></li>
        <li><a hidefocus="true" href="$basename&hid=$hid">点评内容管理</a></li>
<!--
EOT;
if($hid){
print <<<EOT
-->
        <li><a hidefocus="true" href="admin.php?adminjob=mode&admintype=house_info&action=edit&hid=$hid">返回楼盘管理</a></li>
<!--
EOT;
}print <<<EOT
-->
    </ul>
</div>
<div id="legend" class="mb10">
	<h3 class="h1">功能说明</h3>
    <div class="legend">
    	<div class="note">可以通过填写“自定义显示人数”和各项加分分值，使楼盘展示界面的评论数据显示成自己想要的数值</div>
    </div>
</div>
<h2 class="h1"><span class="fl mr10">楼盘总体评价（满分为100分）</span></h2>
<form method="post" action="$basename&" name="FORM">
<input type="hidden" name="action" value="score"/>
<input type="hidden" name="step" value="2"/>
<input type="hidden" name="hid" value="$hid"/>
<!--
EOT;
$scoreinfo[actCount] = $scoreinfo[actCount] ? $scoreinfo[actCount] : '0';
$scoreinfo[actAverageScore] = $scoreinfo[actAverageScore] ? $scoreinfo[actAverageScore] : '0';
$scoreinfo[defindAverageScore] = $scoreinfo[defindAverageScore] ? $scoreinfo[defindAverageScore] : '0';
$scoreinfo[defindCount] = $scoreinfo[defindCount] ? $scoreinfo[defindCount] : '0';
print <<<EOT
-->
<div class="admin_table mb10">
	<table cellspacing="0" cellpadding="0" width="100%">
    	<tbody>
    		<tr class="tr1 vt">
	        	<td class="td1">实际参与评分人数:</td>
	            <td class="td2">$scoreinfo[actCount] 人</td>
	            <td class="td1">自定义显示人数:</td>
	            <td class="td2"><input type="text" class="input input_wc" name="userdefined" value="$scoreinfo[defindCount]"/></td>
	          </tr>
	          <tr class="tr1 vt">
	        	<td class="td1">网友综合楼盘评分:</td>
	            <td class="td2">$scoreinfo[actAverageScore] 分</td>
	            <td class="td1">加分后显示分值:</td>
	            <td class="td2">$scoreinfo[defindAverageScore] 分</td>
	          </tr>
<!--
EOT;
foreach ($scoreField as $key => $value) {
$_act = $scoreinfo[$key]['act'] ?  $scoreinfo[$key]['act'] : 0;
$_added = $scoreinfo[$key]['def'] ?  $scoreinfo[$key]['def'] : 0;
print <<<EOT
-->
	          <tr class="tr1 vt">
	        	<td class="td1">{$value}:</td>
	            <td class="td2">{$_act} 分</td>
	            <td class="td1">{$value}加分:</td>
	            <td class="td2"><input type="text" class="input input_wc" name="content[$key]" value="$_added"/></td>
	          </tr>
<!--
EOT;
}print <<<EOT
-->
	          <tr class="tr1 vt">
	        	<td class="td1">楼盘总体评价:</td>
	            <td class="td2" colspan="3"><textarea class="textarea" name="total">{$scoreinfo[totalEvaluation]}</textarea></td>
	          </tr>
	      </tbody>
	 </table>
</div>
<div class="mb10 tac">
<span class="btn"><span><button onfocus="blur();" type="submit">提 交</button></span></span>
</div>
</form>
<!--
EOT;
}else{print <<<EOT
-->
<div class="nav3 mb10">
    <ul class="cc">
<!--
EOT;
if($hid){
print <<<EOT
-->
        <li><a hidefocus="true" href="$basename&action=score&hid=$hid">总体评价</a></li>
        <li class="current"><a hidefocus="true" href="$basename&hid=$hid">点评内容管理</a></li>
        <li><a hidefocus="true" href="admin.php?adminjob=mode&admintype=house_info&action=edit&hid=1">返回楼盘管理</a></li>
<!--
EOT;
}
print <<<EOT
-->
    </ul>
</div>
<div id="legend" class="mb10">
	<h3 class="h1">搜索条件</h3>
</div>
<form method="post" name="commentsSearch" action="$basename">
<div class="search p_lr_10 mb10">
	<input type="hidden" value="$hid" name="hid"/>
	<input type="hidden" value="search" name="action"/>
 	楼盘名称: <input type="text" class="input input_wc" name="hname" value="$hname" $_readonly />
 	点评内容: <input type="text" class="input input_wa mr5" name="content" value="$content"/>
 	审核状态: <select name="ifcheck"><option value="all"></option><option value="0" {$ifcheck_N}>未审核</option><option value="1" {$ifcheck_Y}>已审核</option></select>
 	<span class="btn2"><span><button onfocus="blur();" type="submit">筛 选</button></span></span>
</div>
</form>
<script src="js/global.js" language="JavaScript"></script>
<script src="js/pw_ajax.js" language="JavaScript"></script>
<h2 class="h1"><span class="fl">用户点评列表</span><span class="fr">[共{$totalCount}条结果]</span></h2>
<form method="post" name="commentsList" action="$basename">
<input type="hidden" value="del" name="action"/>
<input type="hidden" value="$hid" name="hid"/>
<div class="admin_table mb10">
	<table cellspacing="0" cellpadding="0" width="100%">
   		<tbody>
	   		<tr class="tr2">
	        	<td style="width: 40px;" class="tac"><span class="cp" onclick="CheckAll(document.commentsList)">全选</span></td>
	            <td>内容摘要</td>
	            <td style="width: 100px;">楼盘名称</td>
	            <td style="width: 80px;">用户名</td>
	            <td style="width: 80px;">审核</td>
	            <td style="width: 100px;">发表时间</td>
	            <td style="width: 170px;">操作</td>
	        </tr>
<!--
EOT;
if(count($result['contents'])){
foreach($result['contents'] as $key => $value){
print <<<EOT
-->
			<tr class="tr1 vt">
				<td class="td2"><input type="checkbox" value="$value[id]" name="id[]"/></td>
				<td class="td2">$value[subContent]</td>
				<td class="td2">$value[hname]</td>
				<td class="td2">$value[username]</td>
				<td class="td2">
<!--
EOT;
if($value[ifcheck] == '0'){
print <<<EOT
-->
				<span class="s1">未审核</span>
<!--
EOT;
}else{print <<<EOT
-->			
				已审核
<!--
EOT;
}print <<<EOT
-->	
				</td>
				<td class="td2">$value[ctime]</td>
				<td class="td2">
<!--
EOT;
if($value['ifcheck']){
print <<<EOT
-->
					<a href="$basename&action=check&ifcheck=n&hid=$hid&id=$value[id]" onclick="return confirm('确认此操作？')">[未审核]</a>
<!--
EOT;
}else{print <<<EOT
-->
					<a href="$basename&action=check&ifcheck=y&hid=$hid&id=$value[id]" onclick="return confirm('确认此操作？')">[审核]</a>
<!--
EOT;
}print <<<EOT
-->
					<a class="mr10" href="$basename&id=$value[id]&action=del&hid=$hid" onclick="return confirm('确认删除此条点评？');">[删除]</a>
					<a id="showdetail_$value[id]" class="mr20" href="javascript:;" onclick="sendmsg('$basename&action=detail&id=$value[id]','',this.id)">[详情]</a>
				</td>
			</tr>
<!--
EOT;
}
}else{
print <<<EOT
-->
<tr><td class="p10" colspan="9"><div class="admin_tips">啊哦，没有你要的信息！</div></td></tr>
<!--
EOT;
}
print <<<EOT
-->
        </tbody>
    </table>
</div>
<div class="mb10 tac">
$result[pages]
</div>
<div class="mb10 tac">
  <span>操作: </span>
  <label><input type="radio" name="action" value="check_Y"/>已审核</label>  
  <label><input type="radio" name="action" value="check_N"/>未审核</label>
  <label><input type="radio" name="action" value="del" checked/>删除</label>
</div>
<div class="mb10 tac">
	<span class="bt"><span><button onfocus="blur();" onclick="CheckAll(this.form)" type="button">全 选</button></span></span>
	<span class="btn"><span><button onfocus="blur();" type="submit" onclick="return confirm('是否确认此操作？');">提 交</button></span></span>
</div>
</form>
<!--
EOT;
}if (!defined('AJAX')){include_once PrintEot('adminbottom');}
?>-->